<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search</title>
<script type="text/javascript">
function checkNull(input)
{
	//If there are no words alert the msg
	if(input.queryBox.value == "")
	{
		alert("Enter words you want to search!");
		return false;
	}else
	{
		input.query.value = input.queryBox.value ;
		return true;
	}
}
</script>
</head>
<body>
<form name="form" method="post" action="/search.do" onsubmit="return checkNull(this);">
<input type="text" name="queryBox" size="25"> <input type="submit" value="Search">
<input type="hidden" name="query" value=""> 
</form>
<input type="button" value="home" onclick="location.href='/index.html'">
</body>
</html>